<?php

class Comitentes_M extends I_Model {

    protected $_table_name = 'comitentes';
    protected $_primary_key = 'ID';
    protected $_primary_filter = 'intval';
    protected $_order_by = 'RAZAO';
    public $rules = array();
    protected $_timestamps = FALSE;

    
    public  function __construct() {
        parent::__construct();
    }
	
	public function save($data,$id = null,$batch = false){
		
		   if($batch){
		   	 $in = $this->db->insert_batch($this->_table_name,$data);
			   if(!$this->db->insert_id()){
			   	  $this->log_errors();
			   	  return false;
			   }
			   return true;
		   };
		  return parent::save($data,$id);
		
	}
}